package com.nettest.entity.system;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import com.nettest.entity.BaseAuditable;

@Entity
@Table(name = "t_department")
public class Department extends BaseAuditable {

	private static final long serialVersionUID = -4056847016181005098L;
	@TableGenerator(
			name="idGen", 
			table="ID_GENERATOR", 
			pkColumnName="ID_KEY", 
			valueColumnName="ID_VALUE", 
			pkColumnValue="DEPARTMENT_ID", 
			allocationSize=1)
	@Id
	@GeneratedValue(strategy=GenerationType.TABLE, generator="idGen")
	@Column(name="id")
	private Long id;
	@Column(name="dept_id")
	private String deptId;
	@Column(name="parent_id")
	private String parentId;
	@Column(name = "dept_name",length=100)
	private String deptName;
	@Column(name = "dept_address",length=400)
	private String deptAddr;
	@Column(name = "dept_phone",length=100)
	private String deptPhone;
	@Column(name = "dept_contact",length=200)
	private String deptContact;
	@Column(name = "memo",length=400)
	private String memo;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getDeptAddr() {
		return deptAddr;
	}

	public void setDeptAddr(String deptAddr) {
		this.deptAddr = deptAddr;
	}

	public String getDeptPhone() {
		return deptPhone;
	}

	public void setDeptPhone(String deptPhone) {
		this.deptPhone = deptPhone;
	}

	public String getDeptContact() {
		return deptContact;
	}

	public void setDeptContact(String deptContact) {
		this.deptContact = deptContact;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
}
